package com.cxd.app.tools;

import java.util.HashMap;
import java.util.Map;

/**
 * <一句话功能简述> <功能详细描述>
 * @author wtj
 * @date 2015年12月4日 下午3:41:25
 * @company CXD
 * @version [Copyright (c) 2015 V001]
 */
public class LoanTools {
    public String formatDuring(long mss) {
        long days = mss / (1000 * 60 * 60 * 24);
        long hours = (mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60);
        long minutes = (mss % (1000 * 60 * 60)) / (1000 * 60);
        return days + "天" + hours + "时" + minutes + "分";
    }
    
	public Map<String,String>  getDictLoanStatus(){
		Map<String,String> dlsMap = new HashMap<String,String>();
		dlsMap.put("raising","马上抢");
		dlsMap.put("complete","已完成");
		dlsMap.put("recheck","复审中");
		dlsMap.put("repaying","还款中");
		dlsMap.put("cancel","流标");
		return dlsMap;
	}
}
